Fix a recently-introduced delete-process race condition.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 6 Dec 2012 07:31:58 +0000 (23:31 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 6 Dec 2012 07:31:58 +0000 (23:31 -0800)
commit3a952f4a30cee730f8c063b8e7306526ccd119c7
treea55a6385b99880771967ea476184bba83bffdef9
parentb285e36508a647f5004b921fa2d3d30f7d400524
Fix a recently-introduced delete-process race condition.

* callproc.c, process.h (record_kill_process):
New function, containing part of the old call_process_kill.
(call_process_kill): Use it.
This does not change call_process_kill's behavior.
* process.c (Fdelete_process): Use record_kill_process to fix a
race condition that could cause Emacs to lose track of a child.
src/ChangeLog
src/callproc.c
src/process.c
src/process.h